package com.quectel.grid.vo.grid;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 在这里编写说明
 *
 * @author: bob
 * @email: bob.yu@quectel.com
 * @date: 2023-02-14 14:34:00
 */
@Data
@Schema
public class GridPlanTaskVo {

    @Schema(description = "任务id")
    @NotEmpty
    private Long taskId;

    @Schema(description = "巡查结果0.异常 1.正常")
    @NotNull
    private Byte status;

    @Schema(description = "结果描述")
    private String detail;

    @Schema(description = "巡检图片")
    private String snapshotImgs;

    @Schema(description = "是否上报事件 0否1是")
    @NotNull
    private Byte assignWorkOrder;

    //  ================ 事件字段开始

    @Schema(description = "上报事件类型 1.自行处理 2.上报上级")
    private Byte eventType;

    @Schema(description = "事件名称")
    private String eventName;

    @Schema(description = "事件描述")
    private String eventDesc;

    @Schema(description = "事件发生时间")
    private Date eventTime;

    @Schema(description = "事件地点")
    private String eventAddr;

    @Schema(description = "事件图片")
    private String eventPicturesJson;

    @Schema(description = "事件一级类别")
    private Long eventPrimaryId;

    @Schema(description = "事件二级类别")
    private Long eventSecondaryId;

    @Schema(description = "事件等级 1一般2重要")
    private Byte eventLevel;


    @Schema(description = "网格id")
    private Long gridId;

    // ==========  自行上报部分 ===========

    @Schema(description = "自行处理图片")
    private String selfHandlePicturesJson;

    @Schema(description = "自行处置结果")
    private String selfHandleResult;

}
